<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>优先级</title>
    <style>
        /* 选择器选中的标签范围越大，优先级/权重 越低 */
        p{
            color: blue;
        }
        *{
            /* !important 提权作用，将优先级提最高 */
            color: red !important;
        }
        .box{
            color: green;
        }
        #style{
            color: purple;
        }
        

    </style>
</head>
<body>
    <p class="box" id="style" style="color: orange;">p标签</p>
</body>
</html>